package com.example.demo.service.impl;

import com.example.demo.domain.FileInfo.FileInfo;
import com.example.demo.mapper.fileMapper.FileMapper;
import com.example.demo.service.IFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FileServiceImpl implements IFileService {
    @Autowired
    private FileMapper fileMapper;

    @Override
    public void upload(FileInfo fileInfo) {
        fileMapper.insert(fileInfo);
    }



    @Override
    public FileInfo getFile(String fileId) {
        FileInfo fileInfo=fileMapper.getfile(fileId);
        return fileInfo;
    }
}


